package com.yuda.campsite.service.impl;

import com.yuda.campsite.domain.OperProvince;
import com.yuda.campsite.dto.City;
import com.yuda.campsite.dto.School;
import com.yuda.campsite.mapper.OperSiteMapper;
import com.yuda.campsite.service.OperSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.List;

@Service
public class OperSiteServiceImpl implements OperSiteService {

    @Autowired
    private OperSiteMapper operSelectSiteMapper;


    @Override
    public HashSet<OperProvince> selectProvinceName() {
        return operSelectSiteMapper.selectProvinceName();
    }

    @Override
    public List<City> listCity(Long provinceId) {
        return operSelectSiteMapper.listCity(provinceId);
    }

    @Override
    public List<School> listSchool(Long cityId) {
        return operSelectSiteMapper.listSchool(cityId);
    }

}
